#include "circle.h"

void Circle::setC(int x, int y, int r)
{
    m_center.setXY(x, y);
    m_r = r;
}

bool Circle::judge(Point &p)
{
    if (p.distance(m_center) <= m_r * m_r)
    {
        return true;
    }
    else
    {
        return false;
    }
}